<?php

/*
 * EachGo电商网站 新媒体
 * www.eachgo.cn
 */

namespace Home\Model;

/**
 * FindPasswordModel
 * 请输入描述
 * @author Moon
 */
use Think\Model;

class FindPasswordModel extends Model {
    /*
     * 增加一条记录
     */

    public function addUpdatePassword($obj) {
        //$data = D('FindPassword');
        $res = $this->add($obj);

        return $res;
    }

    /*
     * 删除一条记录
     */

    public function deleteFindPassword($obj) {
        //$data = D('FindPassword');
        $res = $this->where('ID=' . $obj['ID'])->delete();

        return $res;
    }

    /*
     * 修改一条记录
     */

    public function updateUpdatePassword($obj) {
        //$data = D('FindPassword');
        $res = $this->where('ID=' . $obj['ID'])->save($obj);

        return $res;
    }

    /*
     * 查询所有记录
     */

    public function selectUpdatePasswordByDefault($obj) {
        //$data = D('FindPassword');
        $res = $this->select();

        return $res;
    }

    /*
     * 查询状态记录
     */

    public function selectUpdatePasswordByIsPassed($obj) {
        //$data = D('FindPassword');
        $res = $this->where('is_Passed = "' . $obj . '"')->select();

        return $res;
    }

}
